package com.vtmer.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.vtmer.entity.User;
import com.vtmer.mapper.ProgressMapper;
import com.vtmer.mapper.UserMapper;
import com.vtmer.service.UserService;
import org.springframework.stereotype.Service;

/**
 * @author Colin
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    ProgressMapper progressMapper;

    @Override
    public User getUserByIdAndPassword(int uid, String password) {
        return getOne(new QueryWrapper<User>().eq("user_id", uid).eq("password", password));
    }
}
